<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<form rel="pagerForm"
	onsubmit="return divSearch(this, 'accountDetail');"
	action="systemsetting/MaterialCategory_materialbuweiList?categoryStatus=${categoryStatus}"
	method="post"></form>
<div class="accordion" fillSpace="${categoryStatus ==0?'materialbuweiList':'materialbuweiListH'}">
	<c:forEach items="${list_b_T_Ufp_MaterialCategory}"
		var="b_T_Ufp_MaterialCategory" varStatus="s">
		<c:if test="${b_T_Ufp_MaterialCategory.pid=='0'}">
			<c:set var="pid" value="${b_T_Ufp_MaterialCategory.uuid}" />
			<div class="accordionHeader">
				<h2>
					<!-- <span>Folder</span> -->
					<%-- 		<a title="删除" target="ajaxTodo" href="systemsetting/MaterialCategory_materialCategoryDelete?checkIds=${b_T_Ufp_MaterialCategory.uuid}&b_T_Ufp_MaterialCategory.categoryStatus=${categoryStatus}" class="btnDel">删除</a> --%>
					<a
						href="systemsetting/MaterialCategory_materialCategoryDetail?b_T_Ufp_MaterialCategory.uuid=${b_T_Ufp_MaterialCategory.uuid}&categoryStatus=${categoryStatus}&flag=shanchu"
						target="dialog" rel="tab222" width="250" height="300">${b_T_Ufp_MaterialCategory.categoryName}</a>
				</h2>
			</div>
			<div class="accordionContent">
				<table class="table" width="108%">
					<thead>
						<tr>
							<th width="2%"><input type="checkbox" name="checkIds"
								group="checkIds${s.index}" class="checkboxCtrl2"></th>
							<th width="11%">类别名称</th>
							<th width="6%">操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list_b_T_Ufp_MaterialCategory}"
							var="b_T_Ufp_MaterialCategoryItem" varStatus="v">
							<c:if test="${b_T_Ufp_MaterialCategoryItem.pid==pid}">
								<tr target="sid_user" rel="1">
									<td><input name="checkIds"
										value="${b_T_Ufp_MaterialCategoryItem.uuid}" type="checkbox"
										zgroup="checkIds${s.index}">
						</td>
						<td title="${b_T_Ufp_MaterialCategoryItem.categoryName}">
						<c:choose>
								<c:when test="${categoryStatus ==0}">
									<a href="systemsetting/Material_materialList?flag=${b_T_Ufp_MaterialCategoryItem.categoryName },${b_T_Ufp_MaterialCategoryItem.uuid},${b_T_Ufp_MaterialCategoryItem.categoryStatus}" target="ajax" rel="materialList">
								</c:when>
								<c:otherwise>
									<a href="systemsetting/Material_materialList?flag=${b_T_Ufp_MaterialCategoryItem.categoryName},${b_T_Ufp_MaterialCategoryItem.uuid},${b_T_Ufp_MaterialCategoryItem.categoryStatus}" target="ajax" rel="materialListH">
								</c:otherwise>
						</c:choose> 
							<font color="blue"> ${b_T_Ufp_MaterialCategoryItem.categoryName}</font> 
							</a>
						</td>
							<td>
								<a title="编辑" target="dialog" rel="tab222" width="250" height="300" href="systemsetting/MaterialCategory_materialCategoryDetail?b_T_Ufp_MaterialCategory.uuid=${b_T_Ufp_MaterialCategoryItem.uuid}&flag=0&categoryStatus=${categoryStatus}" class="btnEdit">编辑</a>
							</td>
						</tr>
					</c:if>
					</c:forEach>
				</tbody>
				</table>
		</div>
	</c:if>
	</c:forEach>
</div>
